package com.four.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;


@Data
public class Card {
    //储值卡
    private Integer oId;//预售订单号

    private Integer staff_id;//会员号

    private String clamp;//卡种  1 年卡  2 储值卡

    private String clamps1;//卡种种类 一

    private String clamps;//卡种种类 二

    private String card;//卡号

    private Integer number;//余额

    public void setName(String name) {
        this.name = name;
    }

    private Integer discount;//卡折扣

    private Integer money;//充值金额
    private String phone;//手机号

    private int pay; //支付方式 1已支付  2未支付送的
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date cTime;//充值时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date endTime;//储值卡结束时间

    private String state; //状态

    private String store; //办理店铺

    private String name; //办理店铺

    private String c_number; //车牌号

    private int count;//储值卡/年卡数量
    private int card_tc;//储值卡提成
    private int card_ztc;//储值卡总提成
    private Orders orders;
    private Member member;
    private String mode;//支付方式



    public String getC_number() {
        return c_number;
    }

    public void setC_number(String c_number) {
        this.c_number = c_number;
    }

    public String getMode() {
        return mode;
    }

    public void setMode(String mode) {
        this.mode = mode;
    }

    public Member getMember() {
        return member;
    }

    public void setMember(Member member) {
        this.member = member;
    }

    public Orders getOrders() {
        return orders;
    }

    public void setOrders(Orders orders) {
        this.orders = orders;
    }

    public int getCard_tc() {
        return card_tc;
    }

    public void setCard_tc(int card_tc) {
        this.card_tc = card_tc;
    }

    public int getCard_ztc() {
        return card_ztc;
    }

    public void setCard_ztc(int card_ztc) {
        this.card_ztc = card_ztc;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }



    @Override
    public String toString() {
        return "Card{" +
                "oId=" + oId +
                ", staff_id=" + staff_id +
                ", clamp='" + clamp + '\'' +
                ", clamps1='" + clamps1 + '\'' +
                ", clamps='" + clamps + '\'' +
                ", card='" + card + '\'' +
                ", number=" + number +
                ", discount=" + discount +
                ", money=" + money +
                ", phone='" + phone + '\'' +
                ", pay=" + pay +
                ", cTime=" + cTime +
                ", endTime=" + endTime +
                ", state='" + state + '\'' +
                ", store='" + store + '\'' +
                ", name='" + name + '\'' +
                ", count=" + count +
                ", card_tc=" + card_tc +
                ", card_ztc=" + card_ztc +
                ", orders=" + orders +
                ", member=" + member +
                ", mode='" + mode + '\'' +
                '}';
    }

    public Integer getoId() {
        return oId;
    }

    public void setoId(Integer oId) {
        this.oId = oId;
    }

    public Integer getStaff_id() {
        return staff_id;
    }

    public void setStaff_id(Integer staff_id) {
        this.staff_id = staff_id;
    }

    public String getClamp() {
        return clamp;
    }

    public void setClamp(String clamp) {
        this.clamp = clamp;
    }

    public String getClamps1() {
        return clamps1;
    }

    public void setClamps1(String clamps1) {
        this.clamps1 = clamps1;
    }

    public String getClamps() {
        return clamps;
    }

    public void setClamps(String clamps) {
        this.clamps = clamps;
    }

    public String getCard() {
        return card;
    }

    public void setCard(String card) {
        this.card = card;
    }

    public Integer getNumber() {
        return number;
    }

    public void setNumber(Integer number) {
        this.number = number;
    }

    public Integer getDiscount() {
        return discount;
    }

    public void setDiscount(Integer discount) {
        this.discount = discount;
    }

    public Integer getMoney() {
        return money;
    }

    public void setMoney(Integer money) {
        this.money = money;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public int getPay() {
        return pay;
    }

    public void setPay(int pay) {
        this.pay = pay;
    }

    public Date getcTime() {
        return cTime;
    }

    public void setcTime(Date cTime) {
        this.cTime = cTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getStore() {
        return store;
    }

    public void setStore(String store) {
        this.store = store;
    }

    public String getName() {
        return name;
    }

}